/*
 * Copyright (C) 2015 备胎金服
 * 未经授权允许不得进行拷贝和修改
 *   http://www.btjf.com/
 */
package com.zhangman.framework;

import android.graphics.Paint;

/**
 * Created by zhangman on 2016/11/1 09:57.
 * Email: zhangman523@126.com
 */
public interface Graphics {

  public static enum ImageFormat {
    ARGB8888, ARGB4444, RGB565
  }

  public Image newImage(String fileName, ImageFormat format);

  public void clearScreen(int color);

  public void drawLine(int x, int y, int x2, int y2, int color);

  public void drawRect(int x, int y, int width, int height, int color);

  public void drawImage(Image image, int x, int y);

  void drawImage(Image image, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight);

  void drawScaledImage(Image image, int x, int y, int width, int height, int srcX, int srcY,
      int srcWidth, int srcHeight);

  public void drawString(String text, int x, int y, Paint paint);

  public int getWidth();

  public int getHeight();

  public void drawARGB(int alpha, int red, int green, int blue);
}
